#edit-mode: -*- python -*-
#coding:utf-8
WORKROOT("../../../../../../")
CC("gcc-7")
CXX("g++-7")

LDFLAGS("-pthread")
CXXFLAGS("-std=c++17  -fPIC -O2")

if not GET_BCLOUD_MACRO("NO_DEBUG"): 
   CXXFLAGS('-g')

INCPATHS('../../ ../../../ $OUT/include')
INCPATHS("$OUT_ROOT/baidu/idbd/anp3-tools/output/include")

#####################################################
ISYSTEM()
LIBS(module="baidu/adu-lab/cybertron-integration", libs=["libcybertron.so"])
LIBS(module="baidu/asd/anp-common", libs=["libanp_proto.so", "libanp_configs.so"])
LIBS(module="baidu/idbd/anp3-tools", libs=["libdatacache.so"])
#LIBS(module="baidu/ad-inf/time", libs=["libtime.so"])
#####################################################

SharedLibrary("perfanp", Sources("perf_component.cpp"))

#######################
# publish output
#######################
#HEADERS("include/*", "$INC")
# OUTPUT("conf", "$OUT")
# OUTPUT("dag", "$OUT")
# OUTPUT("launch", "$OUT")
# OUTPUT("bin", "$OUT")
OUTPUT("bcc_profile", "$OUT")